<template name="tp2">
    <view class="card2-img-box">
        <image class="card2-img" :src="userInfo.person_avatar||userInfo.person_avatar_thumb||'/images/icon/default.svg'"></image>
        <view class="card2-head">
            <view class="flex-y-center">
                <view class="flex-1">
                    <view class="flex-y-center">
                        <view class="f-title-xl">{{userInfo.name}}</view>
                    </view>
                    <view @tap="myself&&!userInfo.position?'goUrl':''" class="mt-md" data-url="/pages/card/add/add?active=0">{{userInfo.position?userInfo.position:myself?'点击填写职位':'未填写职位'}}</view>
                </view>
                <image class="avatar" :src="userInfo.company_logo_thumb||userInfo.company_logo||'/images/icon/default.svg'"></image>
            </view>
            <view class="card2-user-info">
                <view @tap="myself&&!userInfo.company_name?'goUrl':''" class="flex-y-center" data-url="/pages/card/add/add?active=0">
                    <image class="icon-md" src="/static/images/card/home.png"></image>
                    <view class="flex-1 ml-sm ellipsis">
            {{userInfo.company_name?userInfo.company_name:myself?'点击填写公司':'未填写公司'}}
          </view>
                </view>
                <view @tap="myself&&!userInfo.tel?'goUrl':''" class="flex-y-center mt-sm" data-url="/pages/card/add/add?active=0">
                    <image class="icon-md" src="/static/images/card/call.png"></image>
                    <view class="flex-1 ml-sm ">
            {{userInfo.tel||'未填写电话'}}
          </view>
                </view>
                <view @tap="myself&&!userInfo.mini_address?'goUrl':''" class="flex-y-center mt-sm" data-url="/pages/card/add/add?active=0">
                    <image class="icon-md" src="/static/images/card/address.png"></image>
                    <view class="flex-1 ml-sm ellipsis">
            {{userInfo.mini_address||'未填写地址'}}
          </view>
                </view>
            </view>
        </view>
    </view>
    <view style="height:130rpx;background:#fff;z-index:-2;position:relative"></view>
</template>